<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
<div class="new_arrival_zone">
    <div class="new_arrival_title">
       <span><?php echo $this->__('New Arrivals') ?></span>
    </div>
<div>
  <div class="featured-products catalog-listing">
    <div id="slider-container" class="slider-wrapper">
        <ul id="slider-featured" class="list-horizontal list-featured">
	<?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
	    <?php $_items = $_products->getItems(); shuffle($_items); ?>
	    <?php $i=0; foreach ($_items as $_product): ?>

		    <li>
		        <div class="products-col-1">
			<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(102) ?>" width="102" height="102" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" /></a>

			
			<?php echo $this->getPriceHtml($_product, true, '-new') ?>
			</div>
		    </li>

	    <?php endforeach; ?>
	  <?php endif; ?>
         
	 </ul>
	</div>
	 <a href="#" id="move-right">Move right</a>
         <a href="#" id="move-left">Move left</a>
    </div>
    <script type="text/javascript">
         new Slider('slider-container', 'move-left', 'move-right'); 
   </script>
</div>
</div>
<?php endif; ?>